import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export const getUserInfo = (token) => request.post('/sys/profile')
export const getUserDetail = (id) => request.get(`/sys/user/${id}`)

export function logout() {

}
